package com.ionehe.group.common.io.jackson.converter;

import com.fasterxml.jackson.databind.util.StdConverter;

/**
 * Copyright (c) 2020 ionehe.com
 * Date: 2020/9/22
 * Time: 下午10:35
 *
 * @author 2020年 <a href="mailto:a@ionehe.com">秀</a>
 */
public class JacksonBooleanToCharacter extends StdConverter<Boolean, Character> {
    public JacksonBooleanToCharacter() {
    }

    @Override
    public Character convert(Boolean value) {
        return Character.valueOf((char)(null != value && value ? '\u0001' : '\u0000'));
    }
}
